package com.example.resourceSharingPlatform.entity;

public class SubTransaction extends Transaction{

    private String lenderTel;
    private String borrowerTel;
    private String itemName;

    public SubTransaction(Transaction t){
        this.setId(t.getId());
        this.setTime(t.getTime());
        this.setLender_id(t.getLender_id());
        this.setBorrow_id(t.getBorrow_id());
        this.setRentalTime(t.getRentalTime());
        this.setState(t.getState());
        this.setAmount(t.getAmount());
        this.setItem_id(t.getItem_id());
    }

    public String getLenderTel() {
        return lenderTel;
    }

    public void setLenderTel(String lenderTel) {
        this.lenderTel = lenderTel;
    }

    public String getBorrowerTel() {
        return borrowerTel;
    }

    public void setBorrowerTel(String borrowerTel) {
        this.borrowerTel = borrowerTel;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }
}
